package com.glorystone.ins.dao;

import com.glorystone.ins.domain.Advance;
import com.glorystone.ins.domain.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:haoguodong
 * @Date:Created in 10:36 2018/3/17
 */
public interface AdvanceMapper {

    int deleteByPrimaryKey(Long tid);

    int insert(Advance record);

    int insertSelective(Advance record);

    Advance selectByPrimaryKey(Long tid);

    int updateByPrimaryKey(Advance advance);

    int insertApply(Advance advance);
    List<Advance> findSuccessStatus();
    List<Advance> findAdvanceList();

    List<Advance> findTodayAdvance();

    Advance findAdvanceOne(@Param("tid") Long tid);

    Advance selectByTid(@Param("tid")Long tid);

    Advance findAmount();

    List<Advance> findAdvanceAmt();

    int insertTodatAmout(Advance advance);

    int checkAdvance(Advance advance);

    List<Advance> getAdvanceList(String day);

    int updateStatus();

    int clearData();

    int saveAmount(Advance advance);

    Advance findClearData();

}
